package com.patrol.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.patrol.pojo.User;

import java.util.List;

public interface UserService extends IService<User> {

    boolean deleteUserById(Integer id);

    User getUserInformation(String username);

    boolean setUserInformation(User adminUser);

    String getImgUrl(String username);

    boolean registerAdminUser(String username, String password);

    boolean loginAdminUser(String username, String password);

    User selectUserByUserName(String loginUser);

    boolean updatePwdByEmail(String email, String pwd);

    /**
     * 查询用户名是否可用
     * @param username ：用户名
     * @return ：true 可用 false 不可用
     */
    boolean selectUsernameIsExist(String username);

    boolean headerImageUpload(User user, String filePath);

    User selectUserByrealName(String realName);

    List<User> selectAllXG();

    void changeUserState(String userId);

    void changeUserKXState(String userId);

    boolean xgUpdatePhotoUrl(Integer userId, String path);

    User selectUserById(String userId);

    String selectUserRealNameById(Integer adminId);

    int selectXGUserNum();

    int selectXGUserStatus(Integer userId);
}
